#include<iostream>
using namespace std;

class point{
    static int count;
    int x,y;
public:
    point(int x=0, int y=0):x(x),y(y){
        count++;
    }
    point(point &p){
        x=p.x;
        y=p.y;
        count++;
    }
    ~point(){
        count--;
    }
    int get_x(){
        return x;
    }
    int get_y(){
        return y;
    }
    void show_count(){
        cout<<"count="<<count<<endl;
    }
};
int point::count=0;

int main(){
    point p1(1,2);
    {
        cout << "point1:" << p1.get_x() << "," << p1.get_y() << endl;
    }
    p1.show_count();
    point p2(p1);
    {
        cout << "point2:" << p2.get_x() << "," << p2.get_y() << endl;
    }
    p2.show_count();
    return 0;
}